package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.pojo.ItemCat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ld
 * @date 2021/9/17 15:53
 */
@FeignClient(name = "DYM-SELLERGOODS")
@RequestMapping("/itemCat")
public interface ItemCatFeign {

    /**
     * 根据ID查询ItemCat
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    Result<ItemCat> findById(@PathVariable Long id);

}
